package com.example.itemprocessor.skip;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author XieYa
 */
@Component
public class SkipItemWriter implements ItemWriter<Object> {
    @Override
    public void write(List<?> list) throws Exception {
        for (Object item : list) {
            System.out.println(item);
        }
    }
}
